public class test {
    public static boolean seekThreeJi(int[] arr){
        for (int i = 0; i < arr.length - 2; i++) {
            if(arr[i] % 2 == 1 && arr[i + 1] % 2 == 1 && arr[i + 2] % 2 == 1){
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,34,3,4,5,7,23,12};
        boolean flg;
        flg = seekThreeJi(arr);
        System.out.println(flg);
    }
}
